<?php
/**
* 
*/
class ppConfig
{
	
	protected static $_instance;
	
	public static function getInstance(){
		if(is_null(self::$_instance)){
			self::$_instance=new ppConfig();
		}
		return self::$_instance;
	}
	
	public static function set($value){
		ppConfig::getInstance->set($value);
	}
	public function set($value){
		if(is_array($value)){
			$this->_params = array_merge($this->_params,$value);
		}
	}
	
	public static function get($value){
		ppConfig::getInstance->get($value);
	}
	public function get($key){
		if(isset($this->_params[$key])){
			return $this->_params[$key];
		}
		return null;
	}
	
	protected $_params;
	
	public function __construct()
	{
		$this->_params=array();
	}
	
	
}

?>